package com.hunter.sign.dao.model;

import java.io.Serializable;

public class SignWitness implements Serializable {
    /**
     * 主键id
     *
     * @mbg.generated
     */
    private Long witnessId;

    /**
     * 真实姓名
     *
     * @mbg.generated
     */
    private String realname;

    /**
     * 证件类型
     *
     * @mbg.generated
     */
    private Integer idType;

    /**
     * 证件号码
     *
     * @mbg.generated
     */
    private String idCard;

    /**
     * 证件正面
     *
     * @mbg.generated
     */
    private String idFront;

    /**
     * 证件反面
     *
     * @mbg.generated
     */
    private String idBack;

    /**
     * 录像信息
     *
     * @mbg.generated
     */
    private String videoInfo;

    /**
     * 指纹图像
     *
     * @mbg.generated
     */
    private String fingerprintImg;

    /**
     * 指纹信息（用来校验）
     *
     * @mbg.generated
     */
    private String fingerprintVerify;

    /**
     * 创建时间（毫秒数）
     *
     * @mbg.generated
     */
    private Long createTime;

    /**
     * 修改时间（毫秒数）
     *
     * @mbg.generated
     */
    private Long modifyTime;

    private static final long serialVersionUID = 1L;

    public Long getWitnessId() {
        return witnessId;
    }

    public void setWitnessId(Long witnessId) {
        this.witnessId = witnessId;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Integer getIdType() {
        return idType;
    }

    public void setIdType(Integer idType) {
        this.idType = idType;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getIdFront() {
        return idFront;
    }

    public void setIdFront(String idFront) {
        this.idFront = idFront;
    }

    public String getIdBack() {
        return idBack;
    }

    public void setIdBack(String idBack) {
        this.idBack = idBack;
    }

    public String getVideoInfo() {
        return videoInfo;
    }

    public void setVideoInfo(String videoInfo) {
        this.videoInfo = videoInfo;
    }

    public String getFingerprintImg() {
        return fingerprintImg;
    }

    public void setFingerprintImg(String fingerprintImg) {
        this.fingerprintImg = fingerprintImg;
    }

    public String getFingerprintVerify() {
        return fingerprintVerify;
    }

    public void setFingerprintVerify(String fingerprintVerify) {
        this.fingerprintVerify = fingerprintVerify;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", witnessId=").append(witnessId);
        sb.append(", realname=").append(realname);
        sb.append(", idType=").append(idType);
        sb.append(", idCard=").append(idCard);
        sb.append(", idFront=").append(idFront);
        sb.append(", idBack=").append(idBack);
        sb.append(", videoInfo=").append(videoInfo);
        sb.append(", fingerprintImg=").append(fingerprintImg);
        sb.append(", fingerprintVerify=").append(fingerprintVerify);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SignWitness other = (SignWitness) that;
        return (this.getWitnessId() == null ? other.getWitnessId() == null : this.getWitnessId().equals(other.getWitnessId()))
            && (this.getRealname() == null ? other.getRealname() == null : this.getRealname().equals(other.getRealname()))
            && (this.getIdType() == null ? other.getIdType() == null : this.getIdType().equals(other.getIdType()))
            && (this.getIdCard() == null ? other.getIdCard() == null : this.getIdCard().equals(other.getIdCard()))
            && (this.getIdFront() == null ? other.getIdFront() == null : this.getIdFront().equals(other.getIdFront()))
            && (this.getIdBack() == null ? other.getIdBack() == null : this.getIdBack().equals(other.getIdBack()))
            && (this.getVideoInfo() == null ? other.getVideoInfo() == null : this.getVideoInfo().equals(other.getVideoInfo()))
            && (this.getFingerprintImg() == null ? other.getFingerprintImg() == null : this.getFingerprintImg().equals(other.getFingerprintImg()))
            && (this.getFingerprintVerify() == null ? other.getFingerprintVerify() == null : this.getFingerprintVerify().equals(other.getFingerprintVerify()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getWitnessId() == null) ? 0 : getWitnessId().hashCode());
        result = prime * result + ((getRealname() == null) ? 0 : getRealname().hashCode());
        result = prime * result + ((getIdType() == null) ? 0 : getIdType().hashCode());
        result = prime * result + ((getIdCard() == null) ? 0 : getIdCard().hashCode());
        result = prime * result + ((getIdFront() == null) ? 0 : getIdFront().hashCode());
        result = prime * result + ((getIdBack() == null) ? 0 : getIdBack().hashCode());
        result = prime * result + ((getVideoInfo() == null) ? 0 : getVideoInfo().hashCode());
        result = prime * result + ((getFingerprintImg() == null) ? 0 : getFingerprintImg().hashCode());
        result = prime * result + ((getFingerprintVerify() == null) ? 0 : getFingerprintVerify().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        return result;
    }
}